<form id="face-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    
    <div class="form-group">
        <label for="c-url" class="control-label col-xs-12 col-sm-2">人像需求:</label>
        <div class="col-xs-12 col-sm-8" style="color: red;">
            <p>小于 400K</p>
            <p>面部区域像素不低于 128×128</p>
            <p>人脸大小占整张照片 1/3 以上</p>
        </div>
    </div>

    <div class="form-group">
        <label for="c-url" class="control-label col-xs-12 col-sm-2">{:__('人像')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-url" data-rule="" class="form-control" size="50" name="row[url]" type="text" {if $row && $row.faceInfo} value="{$row.faceInfo.faceUrl}" {/if} />
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-url" class="btn btn-danger faupload" data-input-id="c-url" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-url"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-url" class="btn btn-primary fachoose" data-input-id="c-url" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-url"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-url"></ul>
        </div>
    </div>

    <div class="form-group">
        <label for="deviceNo" class="control-label col-xs-12 col-sm-2">{:__('设备号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" data-rule="required" data-source="dts/equipment/selectpage" class="form-control selectpage" data-primary-key="deviceNo" data-field="deviceNo" id="deviceNo" name="row[deviceNo]" {if $row && $row.deviceNo} value="{$row.deviceNo}" {/if} />
        </div>
    </div>

    <div class="form-group">
        <label for="c-url" class="control-label col-xs-12 col-sm-2">{:__('操作')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['0'=>__('注册/授权'), '1'=>__('删除/销权')], 0)}
        </div>
    </div>

    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
